package com.skywaregroup.arenal;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.*;
import javax.xml.bind.annotation.*;


@XmlRootElement(name="NHIFExam") 
@XmlAccessorType(XmlAccessType.NONE) 
@Entity
@Table(name="nhif_exams")
public class NHIFExam implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@Id 
    @Column(name="code") 
	@XmlElement(name="Code")
	public String code;
	
	@Column(name="name")
	@XmlElement(name="Name")
	public String name;	
	
	@Column(name="is_specialized")
	@XmlElement(name="IsSpecialized")
	public Boolean isSpecialized;
	
	@ManyToMany(fetch = FetchType.LAZY, mappedBy = "exams")
	public Set<NHIFPack> packs;

}
